package test.day03;

import java.util.Scanner;

public class test05 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int beichushu = sc.nextInt();
        int chushu = sc.nextInt();
        int count = 0;

        //8 2
        //8 6 4 2
        while (beichushu >= chushu) {
            beichushu = beichushu - chushu;//每次循环被除数减除数，直到被除数<除数
            count++;//计算被除数能减多少个除数

        }
        System.out.println(beichushu);
        System.out.println(count);

    }
}
